package com.eshidai.simple_springboot.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.eshidai.simple_springboot.mq.Sender;

@RestController
@RequestMapping(value="/mq")
public class RabbitMQController {
	@Autowired
	private Sender sender;
	
	@RequestMapping(value="/provider")
	public void send() {
		for(int i=0;i<100;i++) {
			sender.send(i);
			//sender.sendTwo(i);
		}
	}
}
